﻿
Imports std

Public Class hashDistributor
    Inherits distributor

    Protected Overrides Function aggregate(ByVal targetJobs() As indexedJob, ByVal inputJob As ijob) As Boolean
        Return unique_aggregate(targetJobs, inputJob)
    End Function

    Protected Overrides Function distribute(ByVal inputJob As ijob,
                                            ByVal targetJobs As vector(Of pair(Of UInt32, ijob)),
                                            ByRef waitall As Boolean) As Boolean
        Return hash_distribute(inputJob, targetJobs, waitall)
    End Function
End Class
